<template>
  <div class="tab border-bottom">
    <router-link tag="div" to="/goods" class="tab-item">
      <span class="tab-link">商品</span>
    </router-link>
    <router-link tag="div" to="/ratings" class="tab-item">
      <span class="tab-link">评价</span>
    </router-link>
    <router-link tag="div" to="/seller" class="tab-item">
      <span class="tab-link">商家</span>
    </router-link>
  </div>
</template>

<script>
export default {
  name: "Tab"
}
</script>

<style lang="stylus" scoped>
  .tab
    display flex
    text-align center
    &::before
      border-bottom-color rgba(7,17,27,.1)
    .tab-item
      flex 1
      .tab-link
        height 40px
        line-height 40px
        font-size 14px
        color rgb(77, 85, 93)
      &.router-link-active
        .tab-link
          color rgb(240, 20, 20)
</style>
